package controller

import (
	"gitee.com/fierce_wolf/go-fox-edge-common/edgeEnv"
	"gitee.com/fierce_wolf/go-fox-edge-common/httpserver"
)

type environmentController struct {
}

func (e *environmentController) init() {
	httpserver.Server.GET("/environment/type", e.queryEnvType)
}

func (e *environmentController) queryEnvType(context httpserver.Context) (interface{}, error) {
	return edgeEnv.GetEnvType(), nil
}
